package com.ygsoft.tianlu_mall.service.impl;

import com.ygsoft.tianlu_mall.mapper.MessageMapper;
import com.ygsoft.tianlu_mall.pojo.Message;
import com.ygsoft.tianlu_mall.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageImpl implements MessageService {
    @Autowired
    MessageMapper messageMapper;

    @Override
    public List<Message> getMessageById(int message_userid){return messageMapper.getMessageById(message_userid);}
    @Override
    public List<Message> getUnreadMessages(int message_userid){return messageMapper.getUnreadMessages(message_userid);}
    @Override
    public List<Message> getlogisticsMessages(int message_userid){return messageMapper.getlogisticsMessages(message_userid);}
    @Override
    public List<Message> getSystemMessages(int message_userid){return messageMapper.getSystemMessages(message_userid);}
    @Override
    public List<Message> getunreadlogisticsMessages(int message_userid){return messageMapper.getunreadlogisticsMessages(message_userid);}
    @Override
    public List<Message> getunreadSystemMessages(int message_userid){return messageMapper.getunreadSystemMessages(message_userid);}
    @Override
    public List<Message> getreadMessages(int message_userid){return messageMapper.getreadMessages(message_userid);}
    @Override
    public List<Message> getreadlogisticsMessages(int message_userid){return messageMapper.getreadlogisticsMessages(message_userid);}
    @Override
    public List<Message> getreadSystemMessages(int message_userid){return messageMapper.getreadSystemMessages(message_userid);}
    @Override
    public void deleteMessage(int message_id){messageMapper.deleteMessage(message_id);}
    @Override
    public void setMessageRead(int message_id){messageMapper.setMessageRead(message_id);}
    @Override
    public void insertActMessage(int user_id){messageMapper.insertActMessage(user_id);}
    @Override
    public void addActMessage(int user_id){messageMapper.addActMessage(user_id);}
    @Override
    public List<Message> getActMessage(int message_userid){return messageMapper.getActMessage(message_userid);}
    @Override
    public int getCartCount(int message_userid){return messageMapper.getCartCount(message_userid);}
    @Override
    public void doreal(int user_id){messageMapper.doreal(user_id);}
}
